#{extends 'main.html' /}
#{set title:'Home' /}
	<ul class="breadcrumb">
		<li>#{a @Application.index()}Home#{/a}</li>
	</ul>
	
	#{if sandwiches}
		<h1>Available sandwich</h1>
		<br/>
		#{list sandwiches, as:'sandwich'} 
		<!--on prend la liste des sandwiches et on nomme chaque sandwich sandwich !-->
			<div class="well">
			<h2>
				<a>${sandwich.name}</a>
			</h2>
			
			${sandwich.description}
			
			<a class="pull-right"> Order this sandwich</a>
			</div>
 			
		#{/list}
	#{/if}
	
	#{else} 
	<div> There is currently no sandwich
	</div>
	#{/else}

